<?php
// Layout use Twitter Bootstrap
/* @var $this View */
?>
<?php echo $this->Html->doctype('html5'); ?>
<head>
    <?php
    echo $this->Html->tag('title', $title_for_layout);
    echo $this->Html->meta('icon');
    //echo $this->Html->charset();
    echo $this->Html->meta(array('charset' => 'UTF-8'));
    echo $this->Html->meta(array('http-equiv' => 'cache-control', 'content' => 'no-cache'));
    echo $this->Html->meta(array('name' => 'keywords', 'content' => 'CakePHP2,PHP, Blog'));
    echo $this->Html->meta(array('name' => 'description', 'content' => 'enter any meta description here'));
    echo $this->Html->meta(array('name' => 'author', 'content' => 'Oanh Nguyen Ngoc'));
    echo $this->Html->meta(array('name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0'));
    echo $this->fetch('meta');
    echo $this->Html->css(array('bootstrap.min', 'bootstrap-responsive.min', 'app'));
    echo $this->fetch('css');
    echo '<!--[if lt IE 9]>' . $this->Html->script('html5') . '<![endif]-->';
    echo $this->Html->script(array('jquery-1.7.2.min', 'bootstrap.min', 'app'));
    echo $this->fetch('script');
    ?>
</head>
<body>
    <?php echo $this->element('navbar'); ?>
    <div id="container">
        <div id="content">
            <?php echo $this->Session->flash(); ?>
            <?php echo $this->fetch('content'); ?>
        </div>
        <footer class="footer">
            <div class="container">
                <hr />
                <?php
                echo $this->Html->para('pull-right', $this->Html->link(__('Back to top'), '#'));
                echo $this->Html->para(null, COMPANY_NAME . ' &copy; ' . date('Y'));
                ?>
            </div>
        </footer>
    </div>
</body>
</html>
